<?php
namespace appin\cms\validate;

use think\Validate;

class AdvertValidate extends Validate
{
    protected $rule = [
        'title' => 'require|min:1'
    ];

    protected $message = [
        'title.require' => '标题不能为空',
        'titla.min' => '标题不能为空'
    ];

    protected $scene = [
        'posdata' => ['title'],
        'savedata' => ['title']
    ];
}